public class ReverseTester
{
   public static void main(String[] args)
   {
      StringBuilder words = new StringBuilder("deliver star maps");

      words = words.reverse();
      String reversed = words.toString();

      System.out.println(reversed);
      System.out.println("Expected: spam rats reviled");
  }
}